﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">修改商家</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
            <li><a href="index.php?app=seller&act=index"  target="mainframe">商家列表</a></li>
            <li><a href="index.php?app=seller&act=add"  target="mainframe">添加商家</a></li>				
				<li class="current"><a href="#" >修改商家</a></li>	
				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">
	
		<form action="?app=seller&act=editpost" method="post"   enctype="multipart/form-data">
<table  class="data" >
<tbody>
            	<tr >
	              <td>对应商家用户:</td>
	              <td>
                     <input type='text' name='data[username]' size='50' value='{$data.user_name}'>
	              </td>
            	 </tr>       
                 <tr >
	                <td>所在地区:</td>
	                <td>
                                         <select name="data[area]" >
                                           <option value='0'>请选择地区...</option>
                                           
                                            <?php  foreach($citydata as $_key => $_value ) { ?>
                                           
				<option value="{$_value.id}"  <?php if ($_value.id==$data.area) { ?> selected <?php } ?> >{$_value.str_pad}{$_value.name}</option>
                
                                            <?php  } ?>
                                           </select>
	                 </td>
                 </tr>                                   
                 <tr >
					<td width="30%">商家名称:</td>
	                 <td>
                         <input type='text' name='data[sellername]' size='50' value='{$data.sellername}'> 
                     </td>
                 </tr>
                 
                 <tr >
					<td width="30%">商家品牌图:</td>
	                 <td>
                      <input id="postfile1" type="file" name="postfile1" style="height:20px;"  class="buton">  
    <br/> <br/>

     <img src="{$data.picture|picdir}" onerror="this.src='{SITE_URL}/data/images/no_photo.gif'" width="110" height="60" />     


                     </td>
                 </tr>                  
                 
                 <tr >
					<td width="30%">商家地址:</td>
	                 <td>
                         <input type='text' name='data[selleraddress]' size='50' value='{$data.selleraddress}'>
                     </td>
                 </tr>
                 <tr >
					<td width="30%">商家电话:</td>
	                 <td>
                         <input type='text' name='data[sellerphone]' size='30' value='{$data.sellerphone}'>
                     </td>
                 </tr>
                 <tr >
					<td width="30%">商家网址:</td>
	                 <td>
                         <input type='text' name='data[sellerurl]' size='50' value='{$data.sellerurl}'>
                     </td>
                 </tr>                                               
                <tr >
	                <td>&nbsp;</td>
	                <td><input type="hidden" name="id" value="{$data.id}" /><input type="submit" class="buton" value=" 提 交 " /></td>
                </tr>
</tbody></table>
     </form>





        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span ></span></div>
    </div>
</div>
<!--{inc(footer.view.html)}-->